package com.iot08.api.controller;

import com.iot08.api.controller.base.BaseController;
import com.iot08.api.service.GoldCoinDescService;
import com.iot08.api.vo.request.GoldCoinDescAddReqVo;
import com.iot08.common.utils.response.ResponseMap;
import lombok.extern.slf4j.Slf4j;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author cwj
 * @description
 * @date 2025/3/26 15:18
 **/
@RestController
@RequestMapping("getway/goldCoinDesc")
@Slf4j
public class GoldCoinDescController extends BaseController {

    @Resource
    private GoldCoinDescService goldCoinDescService;
    @PostMapping("/add")
    public ResponseMap addGoldCoinDesc(@Validated @RequestBody GoldCoinDescAddReqVo vo){
        return goldCoinDescService.addGoldCoinDesc(vo);
    }

}
